<!DOCTYPE html>
<!-- saved from url=(0036)http://xiaobaosc.com/mobile/flow.php -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="Generator" content="ECSHOP v2.7.3">

    <meta name="viewport" content="width=device-width">
    <title>购物流程_小宝商城 </title>
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="./static/css/public.css">
    <link rel="stylesheet" href="./static/css/flow.css">
    <link rel="stylesheet" href="./static/css/style_jm.css">
    <script type="text/javascript" src="./static/js/jquery.js"></script>
    <script type="text/javascript" src="./static/js/ecsmart.js"></script>
    <script type="text/javascript" src="./static/js/jquery.json.js"></script>
    <script type="text/javascript" src="./static/js/transport.js"></script>
    <script type="text/javascript" src="./static/js/common.js"></script>
    <script type="text/javascript" src="./static/js/utils.js"></script>
    <script type="text/javascript" src="./static/js/shopping_flow.js"></script>
</head>
<body style="background: rgb(235, 236, 237);position:relative;">


<div id="popup_window"
     style="background:#EFEFF4;box-shadow: 0 0 10px #ccc;border: 1px solid #ccc;border-radius: 6px;width:85%;height:auto;margin-left:-43%;margin-top:-20%;left:50%;top:50%;position:fixed;display:none;z-index:9999;">
    <label class="yezf_tit" style="float:left;margin:15px;width: 91%;text-align: center;"><span>请输入余额支付密码</span>
    </label>
    <input id="surplus_password_input" type="password"
           style="float:left;margin:10px 3%;width:91%;background-color:white;height:30px;border: 1px solid #ccc;padding-left: 6px;">
    <input class="yezf_QRB" type="button" onclick="end_input_surplus()"
           style="float:left;width: 50%;margin: 5px; padding:2% 0px; background: #EFEFF4;" value="确定">
    <input class="yezf_QXB" type="button" onclick="cancel_input_surplus()"
           style="float:left; width:40%;margin: 5px; padding:2% 0px;background: #EFEFF4;" value="取消">
</div>


<div class="tab_nav">
    <div class="header">
        <div class="h-left">
            <a class="sb-back" href="javascript:history.back(-1)" title="返回"></a>
        </div>
        <div class="h-mid">
            购物车
        </div>
    </div>
</div>


<div class="screen-wrap fullscreen login">


    <div class="page-shopping ">

        <div class="cart_list">
            <form id="formCart" name="formCart" method="post" action="http://xiaobaosc.com/mobile/flow.php">
                <div class="block" style="margin-top:0px;">
                    <div class="shop_title">
                        <div class="fl"><a class="shopLink eclipse"
                                           href="http://xiaobaosc.com/mobile/supplier.php?suppId=0">网站自营</a><input
                                type="hidden" name="supplierid" id="supplierid" value="0"></div>
                    </div>


                    <div class="item-list">
                        <div class="item">

                            <div class="inner">
                                <div style="width:60%; float:left; height:98px;">
                                    <div class="check-wrapper">
                   <span class="cart-checkbox checked">
                      <input type="checkbox" autocomplete="off" name="sel_cartgoods[]" value="6" id="sel_cartgoods_6"
                             checked="checked" style="display:none;"></span>
                                    </div>
                                    <div class="pic">
                                        <a href="http://xiaobaosc.com/mobile/goods.php?id=162">
                                            <img src="./static/162_thumb_G_1437530928053.jpg"></a>
                                    </div>

                                    <div class="name">
                    <span>
                                    
                 HTC One M9w 联通4G手机 乌金灰                    </span>
                                    </div>
                                    <div class="attr">
                    <span>颜色:金色 
</span>
                                    </div>

                                    <div class="num">
                                        <div class="xm-input-number">
                                            <div class="act_wrap">

                                                <a href="javascript:;" onclick="minus_num(6, 162, 0);" id="jiannum6"
                                                   class="input-sub active"></a>
                                                <input type="text"
                                                       onkeydown="if(event.keyCode == 13) event.returnValue = false"
                                                       name="goods_number[6]" id="goods_number_6" value="2"
                                                       class="input-num" onblur="change_price(6, 162, 0)">
                                                <input type="hidden" id="hidden_6" value="2">
                                                <a href="javascript:;" onclick="javascript:add_num(6, 162, 0)"
                                                   class="input-add active"></a>

                                            </div>
                                        </div>

                                    </div>
                                </div>
                                <div style=" position:absolute; right:0px; top:20px; width:100px; height:98px;">
                                    <div class="price">
                                        <span class="mar_price">￥4200.00元</span>
                                        <br>
                                        <span>￥3837.00元</span>
                                    </div>
                                    <div class="delete">
                                        <a href="javascript:if (confirm(&#39;您确实要把该商品移出购物车吗？&#39;)) location.href=&#39;flow.php?step=drop_goods&amp;id=6&#39;;">
                                            <div class="icon-shanchu"></div>
                                        </a>
                                    </div>
                                </div>
                                <div style="height:0px; line-height:0px; clear:both;"></div>
                            </div>
                            <div class="append"></div>
                        </div>
                    </div>

                </div>
                <div class="block">
                    <div class="shop_title">
                        <div class="fl"><a class="shopLink eclipse"
                                           href="http://xiaobaosc.com/mobile/supplier.php?suppId=7">供货商：金星家纺</a><input
                                type="hidden" name="supplierid" id="supplierid" value="7"></div>
                    </div>


                    <div class="item-list">
                        <div class="item">

                            <div class="inner">
                                <div style="width:60%; float:left; height:98px;">
                                    <div class="check-wrapper">
                   <span class="cart-checkbox checked">
                      <input type="checkbox" autocomplete="off" name="sel_cartgoods[]" value="7" id="sel_cartgoods_7"
                             checked="checked" style="display:none;"></span>
                                    </div>
                                    <div class="pic">
                                        <a href="http://xiaobaosc.com/mobile/goods.php?id=129">
                                            <img src="./static/129_thumb_G_1437527006289.jpg"></a>
                                    </div>

                                    <div class="name">
                    <span>
                                    
                 铂尼诗 家具 床 皮床 卧室家具套装                    </span>
                                    </div>
                                    <div class="attr">
                                        <span></span>
                                    </div>

                                    <div class="num">
                                        <div class="xm-input-number">
                                            <div class="act_wrap">

                                                <a href="javascript:;" onclick="minus_num(7, 129, 7);" id="jiannum7"
                                                   class="input-sub "></a>
                                                <input type="text"
                                                       onkeydown="if(event.keyCode == 13) event.returnValue = false"
                                                       name="goods_number[7]" id="goods_number_7" value="1"
                                                       class="input-num" onblur="change_price(7, 129, 7)">
                                                <input type="hidden" id="hidden_7" value="1">
                                                <a href="javascript:;" onclick="javascript:add_num(7, 129, 7)"
                                                   class="input-add active"></a>

                                            </div>
                                        </div>

                                    </div>
                                </div>
                                <div style=" position:absolute; right:0px; top:20px; width:100px; height:98px;">
                                    <div class="price">
                                        <span class="mar_price">￥4065.60元</span>
                                        <br>
                                        <span>￥3388.00元</span>
                                    </div>
                                    <div class="delete">
                                        <a href="javascript:if (confirm(&#39;您确实要把该商品移出购物车吗？&#39;)) location.href=&#39;flow.php?step=drop_goods&amp;id=7&#39;;">
                                            <div class="icon-shanchu"></div>
                                        </a>
                                    </div>
                                </div>
                                <div style="height:0px; line-height:0px; clear:both;"></div>
                            </div>
                            <div class="append"></div>
                        </div>
                    </div>

                </div>
                <input type="hidden" name="step" value="update_cart">
                <div class="bottom-panel">
                    <div class="quanxuan">
                        <div class="check-wrapper">
                            <span class="cart-checkbox checked" onclick="return chkAll_onclick()"></span><span
                                class="cart-checktext">全选</span>
                        </div>
                    </div>
                    <div class="info">
                        <span class="hot" id="cart_amount_desc"><em>总计：</em>￥11062.00元</span>
                        <br>
                        <span class="hot_text">不含运费</span>
                    </div>
                    <div class="right">

                        <input type="button" href="javascript:void();" onclick="return selcart_submit();"
                               class="xm-button " value="去结算"></div>
                </div>
            </form>
        </div>
    </div>


    <script type="text/javascript" charset="utf-8">
        $(".inner .cart-checkbox").click(function () {
            if ($(this).hasClass('checked')) {
                $(this).removeClass('checked');
                $(this).find('input').attr('checked', false);
            }
            else {
                $(this).addClass('checked');
                $(this).find('input').attr('checked', true);
            }


            if ($(".inner .cart-checkbox") == true) {
                $('.quanxuan .cart-checkbox').addClass('checked');
            }
            else {
                $('.quanxuan .cart-checkbox').removeClass('checked');
            }

            var is_checked = true;
            $('.inner .cart-checkbox').each(function () {
                if (!$(this).hasClass('checked')) {
                    is_checked = false;
                    return false;
                }
            });
            if (is_checked) {
                $('.quanxuan .cart-checkbox').addClass('checked');
            } else {
                $('.quanxuan .cart-checkbox').removeClass('checked');
            }
            select_cart_goods();

        });


        function chkAll_onclick() {
            var is_checked = false;
            if ($('.quanxuan .cart-checkbox').hasClass('checked')) {
                $('.quanxuan .cart-checkbox').removeClass('checked');
                $('.inner .cart-checkbox').removeClass('checked');
                is_checked = false;
            }
            else {
                $('.quanxuan .cart-checkbox').addClass('checked');
                $('.inner .cart-checkbox').addClass('checked');
                is_checked = true;
            }
            for (var i = 0; i < document.formCart.elements.length; i++) {
                var e = document.formCart.elements[i];
                e.checked = is_checked;
            }
            select_cart_goods();
        }

        function select_cart_goods() {
            var sel_goods = new Array();
            var obj_cartgoods = document.getElementsByName("sel_cartgoods[]");
            var j = 0;
            for (i = 0; i < obj_cartgoods.length; i++) {
                if (obj_cartgoods[i].checked == true) {
                    sel_goods[j] = obj_cartgoods[i].value;
                    j++;
                }
            }
            Ajax.call('flow.php', 'act=selcart&sel_goods=' + sel_goods, selcartResponse, 'GET', 'JSON');
        }

        function selcartResponse(res) {
            if (res.result == '请选择要结算的商品！') {
                $('.xm-button').addClass('to_cart');
                $('.xm-button').attr('disable');
            }
            else {
                $('.xm-button').removeClass('to_cart');
                $('.xm-button').removeAttr('disable');
            }
            if (res.err_msg.length > 0) {
                alert(res.err_msg);
            }
            else {

                document.getElementById('cart_amount_desc').innerHTML = res.result;
            }
        }

        function selcart_submit() {
            var obj_cartgoods = document.getElementsByName("sel_cartgoods[]");
            var j = 0;
            for (i = 0; i < obj_cartgoods.length; i++) {
                if (obj_cartgoods[i].checked == true) {
                    j++;
                }
            }
            if (j > 0) {
                document.formCart.action = 'flow.php?step=checkout';
                document.formCart.elements['step'].value = 'checkout';
                document.formCart.submit();
                return true;
            }
            else {
                alert('请选择要结算的商品！');
                return false;
            }
        }
    </script>


    <script>
        function add_num(rec_id, goods_id) {
            document.getElementById("goods_number_" + rec_id + "").value++;
            if (document.getElementById("goods_number_" + rec_id + "").value > 1) {
                document.getElementById("jiannum" + rec_id).className = 'input-sub active';
            } else {
                document.getElementById("jiannum" + rec_id).className = 'input-sub';
            }
            var number = document.getElementById("goods_number_" + rec_id + "").value;
            Ajax.call('flow.php', 'step=update_group_cart&rec_id=' + rec_id + '&number=' + number + '&goods_id=' + goods_id, changePriceResponse, 'GET', 'JSON');
        }

        function minus_num(rec_id, goods_id) {
            if (document.getElementById("goods_number_" + rec_id + "").value > 1) {
                document.getElementById("goods_number_" + rec_id + "").value--;
                if (document.getElementById("goods_number_" + rec_id + "").value > 1) {
                    document.getElementById("jiannum" + rec_id).className = 'input-sub active';
                } else {
                    document.getElementById("jiannum" + rec_id).className = 'input-sub';
                }
            }
            var number = document.getElementById("goods_number_" + rec_id + "").value;
            Ajax.call('flow.php', 'step=update_group_cart&rec_id=' + rec_id + '&number=' + number + '&goods_id=' + goods_id, changePriceResponse, 'GET', 'JSON');
        }

        function change_price(rec_id, goods_id) {
            var r = /^[1-9]+[0-9]*]*$/;
            var number = document.getElementById("goods_number_" + rec_id + "").value;
            if (!r.test(number)) {
                alert("您输入的格式不正确！");
                document.getElementById("goods_number_" + rec_id + "").value = document.getElementById("hidden_" + rec_id + "").value;
            }
            else {
                Ajax.call('flow.php', 'step=update_group_cart&rec_id=' + rec_id + '&number=' + number + '&goods_id=' + goods_id, changePriceResponse, 'GET', 'JSON');
            }
        }

        function changePriceResponse(result) {
            if (result.error == 1) {
                alert(result.content);
                document.getElementById("goods_number_" + result.rec_id + "").value = result.number;
                document.getElementById("hidden_" + result.rec_id + "").value = result.number;
            }
            else {
                document.getElementById("hidden_" + result.rec_id + "").value = result.number;
                document.getElementById('cart_amount_desc').innerHTML = result.cart_amount_desc;//购物车商品总价说明
                show_div_text = "恭喜您！ 商品数量修改成功！ ";

            }

        }
    </script>

    <div style="height:72px;"></div>
    <section class="f_mask" style="display: none;"></section>
    <section class="f_block" id="choose" style="height:0px;"></section>


    <script type="text/javascript">

        function showCheckoutOther(obj) {
            var otherParent = obj.parentNode;
            otherParent.className = (otherParent.className == 'checkout_other') ? 'checkout_other2' : 'checkout_other';
            var spanzi = obj.getElementsByTagName('span')[0];
            spanzi.className = spanzi.className == 'right_arrow_flow' ? 'right_arrow_flow2' : 'right_arrow_flow';
        }

    </script>


</div>


<div class="f_block" id="pop"
     style="position: fixed; bottom: 0px; left: 0px; height: 0px; z-index: 99999999; overflow: hidden; width: 100%; background: rgb(255, 255, 255);">
    <p class="f_title"><span>选择自提点</span><a class="c_close" href="javascript:void(0)" onclick="close_pop()"></a></p>
    <div id="pickcontent"></div>
</div>

<script type="text/javascript" src="./static/order_pickpoint.js"></script>
<script type="text/javascript">
    var process_request = "正在处理您的请求...";
    var username_empty = "- 用户名不能为空。";
    var username_shorter = "- 用户名长度不能少于 3 个字符。";
    var username_invalid = "- 用户名只能是由字母数字以及下划线组成。";
    var password_empty = "- 登录密码不能为空。";
    var password_shorter = "- 登录密码不能少于 6 个字符。";
    var confirm_password_invalid = "- 两次输入密码不一致";
    var email_empty = "- Email 为空";
    var email_invalid = "- Email 不是合法的地址";
    var agreement = "- 您没有接受协议";
    var msn_invalid = "- msn地址不是一个有效的邮件地址";
    var qq_invalid = "- QQ号码不是一个有效的号码";
    var home_phone_invalid = "- 家庭电话不是一个有效号码";
    var office_phone_invalid = "- 办公电话不是一个有效号码";
    var mobile_phone_invalid = "- 手机号码不是一个有效号码";
    var msg_un_blank = "* 用户名不能为空";
    var msg_un_length = "* 用户名不得超过14个字符";
    var msg_un_format = "* 用户名含有非法字符";
    var msg_un_registered = "* 用户名已经存在,请重新输入";
    var msg_can_rg = "* 可以注册";
    var msg_email_blank = "* 邮件地址不能为空";
    var msg_email_registered = "* 邮箱已存在";
    var msg_email_format = "* 邮件地址不合法";
    var msg_blank = "不能为空";
    var no_select_question = "- 您没有完成密码提示问题的操作";
    var passwd_balnk = "- 密码中不能包含空格";
    var username_chana = "- 用户名不能有中文。";
    var msg_uname_length = "- 用户名不能超过 20 个字符。";
    var msg_un_chine = "* 用户名不能为中文";
    var msg_mobile_phone_blank = "* 手机号码不能为空";
    var msg_mobile_phone_registered = "* 手机号码已存在";
    var msg_mobile_phone_format = "* 手机号码不是一个有效号码";
    var msg_email_code_blank = "- 邮箱验证码不能为空";
    var msg_mobile_phone_code_blank = "- 手机验证码不能为空";
    var msg_captcha_blank = "- 验证码不能为空";
    var msg_register_type_blank = "- 注册类型不能为空";
    var username_exist = "用户名 %s 已经存在";
    var compare_no_goods = "您没有选定任何需要比较的商品或者比较的商品数少于 2 个。";
    var btn_buy = "购买";
    var is_cancel = "取消";
    var select_spe = "请选择商品属性";
</script>
<script type="text/javascript">

    function choose_gift(suppid) {

        var sel_goods = new Array();
        var obj_cartgoods = document.getElementsByName("sel_cartgoods[]");
        var j = 0;
        for (i = 0; i < obj_cartgoods.length; i++) {
            //if(obj_cartgoods[i].checked == true)
            {
                sel_goods[j] = obj_cartgoods[i].value;
                j++;
            }
        }
        Ajax.call('flow.php', 'is_ajax=1&suppid=' + suppid + '&sel_goods=' + sel_goods, selgiftResponse, 'GET', 'JSON');
    }

    function selgiftResponse(res) {
        $('#choose').html(res.result);
        $("#choose").animate({height: '80%'}, [10000]);
        var total = 0, h = $(window).height(),
            top = $('.f_title').height() || 0,
            con = $('.f_content');
        total = 0.8 * h;
        con.height(total - top + 'px');
        $(".f_mask").show();
    }

    function close_choose() {

        $(".f_mask").hide();
        $('#choose').animate({height: '0'}, [10000]);

    }
</script>
<script type="text/javascript">
    var process_request = "正在处理您的请求...";
    var username_empty = "- 用户名不能为空。";
    var username_shorter = "- 用户名长度不能少于 3 个字符。";
    var username_invalid = "- 用户名只能是由字母数字以及下划线组成。";
    var password_empty = "- 登录密码不能为空。";
    var password_shorter = "- 登录密码不能少于 6 个字符。";
    var confirm_password_invalid = "- 两次输入密码不一致";
    var email_empty = "- Email 为空";
    var email_invalid = "- Email 不是合法的地址";
    var agreement = "- 您没有接受协议";
    var msn_invalid = "- msn地址不是一个有效的邮件地址";
    var qq_invalid = "- QQ号码不是一个有效的号码";
    var home_phone_invalid = "- 家庭电话不是一个有效号码";
    var office_phone_invalid = "- 办公电话不是一个有效号码";
    var mobile_phone_invalid = "- 手机号码不是一个有效号码";
    var msg_un_blank = "* 用户名不能为空";
    var msg_un_length = "* 用户名不得超过14个字符";
    var msg_un_format = "* 用户名含有非法字符";
    var msg_un_registered = "* 用户名已经存在,请重新输入";
    var msg_can_rg = "* 可以注册";
    var msg_email_blank = "* 邮件地址不能为空";
    var msg_email_registered = "* 邮箱已存在";
    var msg_email_format = "* 邮件地址不合法";
    var msg_blank = "不能为空";
    var no_select_question = "- 您没有完成密码提示问题的操作";
    var passwd_balnk = "- 密码中不能包含空格";
    var username_chana = "- 用户名不能有中文。";
    var msg_uname_length = "- 用户名不能超过 20 个字符。";
    var msg_un_chine = "* 用户名不能为中文";
    var msg_mobile_phone_blank = "* 手机号码不能为空";
    var msg_mobile_phone_registered = "* 手机号码已存在";
    var msg_mobile_phone_format = "* 手机号码不是一个有效号码";
    var msg_email_code_blank = "- 邮箱验证码不能为空";
    var msg_mobile_phone_code_blank = "- 手机验证码不能为空";
    var msg_captcha_blank = "- 验证码不能为空";
    var msg_register_type_blank = "- 注册类型不能为空";
    var username_exist = "用户名 %s 已经存在";
    var compare_no_goods = "您没有选定任何需要比较的商品或者比较的商品数少于 2 个。";
    var btn_buy = "购买";
    var is_cancel = "取消";
    var select_spe = "请选择商品属性";
</script>


</body>
</html>